#include <iostream>
#include <string>
using namespace std;
 
int main()
{
    string s1, s2;
    while(cin >> s1 >> s2) // 未知组数的输⼊
    {
        int hash[26] = { 0 };
        for(auto ch : s1) hash[ch - 'A']++;
        bool ret = true;
        for(auto ch : s2)
        {
            if(--hash[ch - 'A'] < 0)
            {
                ret = false;
                break;
            }
        }
        cout << (ret ? "Yes" : "No") << endl;
    }
    return 0;
}